package com.cyf.wechat.network.bean;

import com.cyf.util.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class InOutParkingRsp {

    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("车场id")
    private Integer parkingId;
    @ApiModelProperty("订单号id")
    private Integer payorderId;
    @ApiModelProperty("车场名称")
    private String parkingName;
    @ApiModelProperty("入场时间")
    private String inTime;
    @ApiModelProperty("出场时间")
    private String outTime;
    @ApiModelProperty("车牌号")
    private String plate;
    @ApiModelProperty("停留时间")
    private String stopTime;
    @ApiModelProperty("停车费用")
    private Integer actualFee;
    @ApiModelProperty("支付方式：0-微信 1-支付宝 2-银行卡 3-未知 4-现金 5-微信公众号")
    private Integer payWay;
    @ApiModelProperty("优惠金额")
    private Integer couponFee;
    @ApiModelProperty("计费规则名称")
    private String feeGroupName;
    @ApiModelProperty("计费规则id")
    private Integer feeGroupId;
    @ApiModelProperty("应收金额")
    private Integer shouldFee;
    @ApiModelProperty("发票状态：1可开票订单，2已开票订单，3异常订单")
    private Integer type;
    private String recordOrderId;

    private Integer localInoutparkingId;

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        if(StringUtils.isNotBlank(inTime)){
            inTime = DateUtil.formatDateWithoutMillisecond(inTime);
        }
        this.inTime = inTime;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        if(StringUtils.isNotBlank(outTime)){
            outTime = DateUtil.formatDateWithoutMillisecond(outTime);
        }
        this.outTime = outTime;
    }
}
